<local:DocumentBase x:Class="WPFExcelReport.ITXQVW"
                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        
                        xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                        xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                         xmlns:db="clr-namespace:INTEX.DataBase"
                         
                        Loaded="Window_Loaded" 
                        FontSize="16" 
                        Background="White" 
                        HorizontalAlignment="Stretch"
                        Margin="0,0,0,0" 
                        VerticalAlignment="Stretch"
                    >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <db:SETINTEXDB  x:Key="SetData" />
        <db:SETINTEXDB  x:Key="SetProd" />
        <db:SETINTEXDB  x:Key="SetEnv" />
        <CollectionViewSource   x:Key="vwVKPOS" Source="{Binding Path=QVW_VKPOS,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwKDSTAMM" Source="{Binding Path=QVW_KDSTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwGSDAT" Source="{Binding Path=QVW_GSDAT,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwFWASTAMM" Source="{Binding Path=QVW_FWASTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwGWASTAMM" Source="{Binding Path=QVW_GWASTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwBHSATZ" Source="{Binding Path=QVW_BHSATZ,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwFSSTAMM" Source="{Binding Path=QVW_FSSTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwABPOS" Source="{Binding Path=QVW_ABPOS,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwMSSTAMM" Source="{Binding Path=QVW_MSSTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWBBST" Source="{Binding Path=QVW_WBBST,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwBABST" Source="{Binding Path=QVW_BABST,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwGLLG" Source="{Binding Path=QVW_GLLG,Source={StaticResource SetData}}" />  
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0">
            <Button  Height="30"  Width="30" Margin="10,0,0,0"  Click="btnQuery_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                <Button.Background>
                    <ImageBrush ImageSource="Image/Search.png" />
                </Button.Background>
            </Button>
            <TextBlock Text="{Binding Source={Localization:Translate Word=查询}}"></TextBlock>
            <Button  Height="30"  Width="30" Margin="10,0,0,0"   IsEnabled="True" Click="btnRefresh_Click">
                <Button.Background>
                    <ImageBrush ImageSource="Image/Reload.png" />
                </Button.Background>
            </Button>
            <TextBlock Text="{Binding Source={Localization:Translate Word=刷新}}"></TextBlock>
            <Button  Height="30"  Width="30" Margin="10,0,0,0"  Click="btnPrint_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                    <Button.Background>
                        <ImageBrush ImageSource="Image/Print.png" />
                    </Button.Background>
                </Button>
                <TextBlock Text="{Binding Source={Localization:Translate Word=打印}}"></TextBlock>          
        </WrapPanel>
        <TabControl Grid.Row="1">
            <TabItem Header="{Binding Source={Localization:Translate Word=QVW_VKPOS}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwVKPOS}}"  
                              HeadersVisibility="Column"
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwKDSTAMM}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwKDSTAMM}}"  
                              HeadersVisibility="Column"
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwGSDAT}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwGSDAT}}"   
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwGWASTAMM}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwGWASTAMM}}"  
                              HeadersVisibility="Column" 
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwFWASTAMM}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwFWASTAMM}}"  
                              HeadersVisibility="Column" 
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwABPOS}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwABPOS}}"  
                              HeadersVisibility="Column" 
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwMSSTAMM}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwMSSTAMM}}"  
                              HeadersVisibility="Column" 
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwWBBST}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwWBBST}}"  
                              HeadersVisibility="Column" 
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwBABST}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwBABST}}"  
                              HeadersVisibility="Column" 
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
            <TabItem Header="{Binding Source={Localization:Translate Word=vwGLLG}}" Height="26" VerticalAlignment="Bottom">
                <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwGLLG}}"  
                              HeadersVisibility="Column" 
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                </DataGrid>
            </TabItem>
        </TabControl>
    </Grid>
    
</local:DocumentBase>
